package com.hopu.v1.mapper.admin.system;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hopu.v1.pojo.system.StaffSubject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author DELL
* @description 针对表【s_staff_subject(员工学科关联表)】的数据库操作Mapper
* @createDate 2024-10-16 09:24:13
* @Entity com.hopu.v1.pojo.system.StaffSubject
*/
public interface StaffSubjectMapper extends BaseMapper<StaffSubject> {

    /**
     * 获取班级列表
     */
    List<StaffSubject> classSubject(@Param("page") Long current,
                                    @Param("size") Long size,
                                    @Param("className") String className,
                                    @Param("realName") String realName,
                                    @Param("teacherName") String teacherName,
                                    @Param("subjectName") String subjectName,
                                    @Param("classStatus") Integer classStatus,
                                    @Param("staffId") Integer staffId
    );

    /**
     * 获取记录数
     */
    Integer getTotal(String className, String realName, String teacherName, @Param("subjectName") String subjectName, Integer classStatus);
}




